﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using NHibernate.Linq;
using Model;
using IDataAccess;

namespace DataAccess
{
    public class UserDao : BaseRepository<User>, IUsersRepository
    {
        public User FindUserByName(string userName)
        {
            var t = (from m in this.LoadAll()
                     select m).ToList();

            return t.FirstOrDefault();
     
        }
    }
}
